package com.attms.controller;

import com.attms.controller.utils.R;
import com.attms.domain.Employee;
import com.attms.service.IAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/Account")
public class AccountController {

    @Autowired
    private IAccountService iAccountService;
    @PostMapping
    public R login(@RequestBody Employee employee){
        return new R(true, iAccountService.login(employee.getE_ID(), employee.getE_PASSWORD()));
    }

}
